import java.text.ParseException;
import java.text.SimpleDateFormat;
import java.util.Calendar;
import java.util.Date;
import java.util.Scanner;

public class dierti {
    public static void main(String[] args) throws ParseException {
        Scanner sc = new Scanner(System.in);
        System.out.println("请输入年限 yyyy-MM-dd");
        String nianxian = sc.next();
        SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd");
        Date date = simpleDateFormat.parse(nianxian);
        long dateTime = date.getTime();
        Calendar instance = Calendar.getInstance();
        long timeInMillis = instance.getTimeInMillis();
        long shijian = timeInMillis - dateTime;
        int year = (int) (shijian/1000/60/60/24/365);
        System.out.println("入职了"+year+"年");
    }
}
